path_get_length

Returns the length, in pixels, of a given path.

语法:

path_get_length(index);


参数 描述
index The index of the path to measure.


Returns: Real.


描述

You can use this function to get the exact length of a path in pixels. this is not an approximate length from point to point, but rather an exact length along the shape of the path, even when the path is smooth with a high curved precision.


例如:

len = path_get_length(c_path);

This will set "len" to the total length of the path indexed in "c_path" in pixels.


上一页: Path Information
下一页: path_get_name
© Copyright YoYo Games Ltd. 2018 All Rights Reserved